// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

import Qt 4.7
 import QtMultimediaKit 1.1

 CameraButton {
     property Camera camera

     onClicked: {
         if (camera.lockStatus == Camera.Unlocked)
             camera.searchAndLock();
         else
             camera.unlock();
     }

     text: {
         if (camera.lockStatus === Camera.Unlocked)
             "Focus";
         else if (camera.lockStatus === Camera.Searching)
             "Focusing"
         else
             "Unlock"
     }
 }
